<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ingres.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ingres.configuration.html">运行时配置</a></div>
 <div class="up"><a href="ingres.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ingres.installation" class="section">
 <h2 class="title">安装</h2>
 <p class="para">
  此 <a href="http://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a> 扩展未与
PHP 捆绑。
  安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.html" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
  <a href="http://pecl.php.net/package/ingres" class="link external">&raquo;&nbsp;http://pecl.php.net/package/ingres</a>.
 </p>
 <p class="para">
  You can download the DLL for this PECL extension from <a href="http://esd.ingres.com/product/drivers/PHP/" class="link external">&raquo;&nbsp;http://esd.ingres.com/product/drivers/PHP/</a>.
 </p>
 <p class="para">
  To have these functions available, you must <a href="http://pecl.php.net/package/ingres" class="link external">&raquo;&nbsp;download</a> and compile
  this extension, enabling Ingres support using the
  <strong class="option configure">--with-ingres[=DIR]</strong>
 option, where DIR is
  the Ingres base directory. If the <var class="varname"><var class="varname">II_SYSTEM</var></var> environment variable is not  
  set correctly you may need to use 
  <strong class="option configure">--with-ingres=DIR</strong>

  to specify your Ingres installation directory.
 </p>
 <p class="para">
  PHP code written for version 2.x and later is not backward-compatible with
  earlier versions of this PHP extension. However, it is possible to run two 
  incompatible releases within the same PHP environment using the <strong class="option configure">--enable-ingres2</strong>
 option. This configuration option
  renames the extension to ingres2, changing function names, configuration 
  settings, and constants. For example, with this option enabled,
  <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> becomes
  <span class="function"><strong>ingres2_connect()</strong></span>.
 </p>
 <p class="para">
  To use this extension the system environment variable II_SYSTEM must be
  defined. Linux and UNIX users will also need to define the shared library
  search path, for example, <var class="varname"><var class="varname">LD_LIBRARY_PATH</var></var>. When used with the Apache web server 
  these variables must be 
  set explicitly in the startup script for Apache. In addition, the <em>PassEnv</em>
  directive is required for the Ingres extension to load the correct shared 
  libraries. For example:
 </p>
 <div class="example" id="example-1179">
  <p><strong>Example #1 Example usage of PassEnv for Ingres</strong></p>
  <div class="example-contents">
<div class="cdata"><pre>
&lt;IfModule mod_env.c&gt;
    PassEnv II_SYSTEM
    PassEnv LD_LIBRARY_PATH
&lt;/IfModule&gt;
</pre></div>
  </div>

 </div>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
   For example configurations for different web servers and operating
   systems see <a href="http://community.ingres.com/wiki/Ingres_Articles#Ingres_and_Web_Servers" class="link external">&raquo;&nbsp;http://community.ingres.com/wiki/Ingres_Articles#Ingres_and_Web_Servers</a>.
  </p>
 </p></blockquote>
 
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ingres.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ingres.configuration.html">运行时配置</a></div>
 <div class="up"><a href="ingres.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
